package demo3;

public class Animal {
    String name;
    int age;

    public void eat() {
        System.out.println(name + "喜欢吃饭");
    }

    public void sleep() {
        System.out.println(name + "喜欢睡觉");
    }
}
